<template>
  <div class="income">
    <div class="income-head">
      <div class="head-top flex">
        <div class="left">
          <img src="../../assets/images/Customerpage/返回.png" alt="" />
        </div>
        <div class="right">
          <img src="../../assets/images/Customerpage/首页按钮.png" alt="" />
        </div>
      </div>
      <!-- 客户信息 -->
      <div class="information">
        <div class="in-body flex">
          <!-- 头像 -->
          <div class="in-left">
            <img src="../../assets/images/Customerpage/头像.png" alt="" />
          </div>
          <!-- 名称 -->
          <div class="in-center">
            <h2>名称：老陈</h2>
            <p>电话：138888888888</p>
          </div>
          <!-- 客户信息 -->
          <div class="in-right">
            <p>客户信息</p>
          </div>
        </div>
      </div>
    </div>
    <!-- 导航条 -->
    <div class="nav">
      <ul class="nav-ul flex">
        <li class="1>2?'active':''" v-for="item in navList" :key="item.id">
          <p>{{ item.name }}</p>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      //导航条切换
      navList: [
        { id: 1, name: "收入分析", path: "" },
        { id: 2, name: "旗下企业", path: "" },
        { id: 3, name: "合作伙伴", path: "" },
        { id: 4, name: "当年收入", path: "" },
      ],
    };
  },
};
</script>
 
<style lang = "less" scoped>
.income-head {
  height: 350px;
  overflow: hidden;
  background: #003399;
  border-bottom: #e5e5e5 solid 2px;
  box-sizing: border-box;
  .left,
  .right {
    width: 46px;
  }
  .left img {
    width: 22px;
  }
  .right img {
    width: 48px;
  }
  .right {
    margin-right: 10px;
  }
  .head-top {
    padding: 0 28px;
    padding-top: 65px;
    box-sizing: border-box;
    justify-content: space-between;
  }
  .information {
    height: 190px;
    padding: 0 54px;
    margin-top: 50px;
    box-sizing: border-box;
    overflow: hidden;
    .in-body {
      width: 100%;
      background: #fdfeff;
      height: 100%;
      border-top-left-radius: 30px;
      border-top-right-radius: 30px;

      .in-left {
        width: 130px;
        height: 130px;
        align-self: center;
        margin-left: 38px;
        margin-top: 15px;
        img {
          width: 100%;
        }
      }
      .in-center {
        align-self: center;
        text-align: left;
        margin-left: 36px;
        h2 {
          font-weight: 700;
          font-size: 30px;
          margin-bottom: 12px;
        }
        p {
          width: 280px;

          font-size: 24px;
        }
      }
      .in-right {
        width: 118px;
        height: 40px;
        color: #fff;
        border-top-left-radius: 40px;
        border-bottom-left-radius: 40px;
        padding: 3px 0;
        background: #ffcc33;
        line-height: 42px;
        margin-left: 75px;
        margin-top: 30px;
      }
    }
  }
}
.nav-ul {
  height: 110px;
  align-items: center;
  justify-content: space-around;
  font-size: 30px;
  color: #666666;
  border-bottom: 2px solid #e5e5e5;
  box-sizing: border-box;
  li {
    &.active {
      color: #003399;
    }
  }
}
</style>